package com.qf.shop.common.exception;

/**
 * @Description
 * @Author dearkzid
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/8/6
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义异常,业务执行出错会抛出一个这样的异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusinessException extends RuntimeException{

    private String msg;

    private Integer code;

}
